import Vue from "vue";
import "babel-polyfill";
import Vuex from "vuex";
import user from "./modules/user";
import router from "./modules/router";
import specExhib from "./modules/specExhib";
import lang from "./modules/lang";
import collection from "./modules/collection";
import wechatLogin from "./modules/wechatLogin";
import getters from "./getters";

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    user,
    router,
    specExhib,
    lang,
    collection,
    wechatLogin
  },
  getters
});

export default store;
